package router

import (
	"github.com/gin-gonic/gin"
	"goods_bff/api/category"
)

func InitCategoryRouter(router *gin.Engine) {

	//路由尽量不要出现动词,出现的是名词
	v1 := router.Group("g/v1/category")
	{

		//商品分类列表
		v1.GET("", category.CategoryList)
		//新建接口
		v1.POST("", category.CreateCategory)
		//用户修改接口
		v1.PUT("", category.UpdateCategory)
		//用户删除接口
		v1.DELETE("", category.DeleteCategory)

	}
}
